package com.example.checkqufuface.Customer;

import android.content.Context;
import android.view.View;
import android.widget.EditText;
import android.widget.ImageView;

import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;

import com.example.checkqufuface.Adapter.PeopleMessageAdapter;
import com.example.checkqufuface.R;
import com.example.checkqufuface.bean.QufuQueryCertificateResultBean;

import java.util.List;

public class BottomPeopleMessageDialog extends BottomDialogBase implements View.OnClickListener {

    private Context context;

    private ImageView close;

    private EditText searchNumber;
    private RecyclerView rvPeopleShow;


    public BottomPeopleMessageDialog(Context context, List<QufuQueryCertificateResultBean.DataBean> dataBeans, String baseUrl) {
        super(context);
        this.context = context;

        PeopleMessageAdapter peopleMessageAdapter = new PeopleMessageAdapter(context, dataBeans,baseUrl);
        LinearLayoutManager linearLayoutManager = new LinearLayoutManager(context);
        rvPeopleShow.setLayoutManager(linearLayoutManager);
        rvPeopleShow.setAdapter(peopleMessageAdapter);


        close.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                dismiss();
            }
        });
    }


    @Override
    protected void onCreate() {
        setContentView(R.layout.widget_people_message_detail);

        rvPeopleShow = findViewById(R.id.rv_people_message_show);

        close = findViewById(R.id.iv_wg_qu_xiao_ka);


    }

    @Override
    public void onClick(View v) {
        dismiss();
    }

}


